package com.sy.behavioral.strategy;

public class Team {

    private GameStrategy gameStrategy;

    public Team(GameStrategy gameStrategy) {
        this.gameStrategy = gameStrategy;
    }

    public void win() {
        System.out.println("比赛已经开始");
        gameStrategy.runStrategy();
        System.out.println("比赛胜利");
    }

}
